﻿using System;
using System.Windows;
using System.Windows.Controls;

namespace QDP.Platform.Admin
{
    public partial class AdminLogin : UserControl
    {
        public AdminLogin()
        {
            InitializeComponent();
        }

        public Action LoginAction { get; set; }

        private void OnLoginClick(object sender, RoutedEventArgs e)
        {
            string arg1 = txtAccount.Text.Trim();
            string arg2 = txtPassword.Password;
            if (arg1 == arg2)
            {
                if(LoginAction != null )
                    LoginAction();
            }
        }
    }
}
